package com.heiye.blog.ai.domain.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.heiye.blog.ai.domain.dos.RoleTextDO;

import java.util.List;

/**
 * @author: heiye
 * @date: 2025/11/06 下午5:47
 * @version: v1.0.0
 * @description: TODO
 */
public interface RobotTextMapper extends BaseMapper<RoleTextDO> {

    /**
     * 根据角色 ID 查询智能体文本模型
     *
     * @param roleId
     * @return
     */
    default List<RoleTextDO> selectByRobotId(Long roleId) {
        return selectList(Wrappers.<RoleTextDO>lambdaQuery()
                .eq(RoleTextDO::getRoleId, roleId));
    }
}
